﻿/*
 * MIT License
 *Copyright (c) 2021 咖啡与网络(java-and-net)
 *
 *模块说明：客户信息类
 */
using System;

namespace CoreShop.Model
{
    /// <summary>
    /// 客户信息
    /// </summary>
    [SqlSugar.SugarTable("base_customer")]
    public class Customer
    {
        /// <summary>
        /// 客户编号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public long id { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "custNumber", IsNullable = false)]
        public string custNumber { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "custName", IsNullable = false)]
        public string custName { get; set; }
        /// <summary>
        /// 客户性别
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "custSex", IsNullable = true)]
        public int custSex { get; set; }
        /// <summary>
        /// 客户电话
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "custPhone", IsNullable = false)]
        public string custPhone { get; set; }
        /// <summary>
        /// 证件类型
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "categoryId", IsNullable = false)]
        public int categoryId { get; set; }
        /// <summary>
        /// 居住地址
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "custAddress", IsNullable = true)]
        public string custAddress { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public string SexName { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool isDelete { get; set; }
        /// <summary>
        /// 资料创建人
        /// </summary>
        public long createUserId { get; set; }
        /// <summary>
        /// 资料创建时间
        /// </summary>
        public DateTime createTime { get; set; }
        /// <summary>
        /// 资料更新人
        /// </summary>
        public long updateUserId { get; set; }
        /// <summary>
        /// 资料更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }
}
